#include <stdio.h>
#include <iostream>
#include "dynamic_lib1.h"
#include "dynamic_lib2.h"

using namespace std;

int main(int argc, char *argv[]) {
#if _DEBUG
	cout << "============= DEBUG=TRUE =============" << endl;
#else
	cout << "============= DEBUG=FALSE =============" << endl;
#endif

	dltest::dltest1::DynamicLib1 dy1;
	dltest::dltest2::DynamicLib2 dy2;

	cout << "============= printBase =============" << endl;

	dy1.printBase();
	dy2.printBase();

	cout << "============= print =============" << endl;
	dy1.print();
	dy2.print();

	cout << "============= dy1 init =============" << endl;
	dy1.setNum(1);
	dy1.setBaseNum(1);

	dy1.printBase();
	dy2.printBase();

	dy1.print();
	dy2.print();


	cout << "============= dy2 init =============" << endl;
	dy2.setNum(2);
	dy2.setBaseNum(2);

	dy1.printBase();
	dy2.printBase();

	dy1.print();
	dy2.print();

	getchar();
	return 0;
}
